<?php
/**
 * Created by a front-end programmer.
 * Author: lauwen
 * Mail:lauwencn@gmail.com
 */
class IndexController extends CommonController {
    public function index(){
        $page = isset($_GET['page']) ? $_GET['page'] : 1;

        $data = K("Article")->order('sendtime asc')->pagination($page, 3);
        $articleData = $data['returnData'];
        $this->assign('articleData', $articleData);
        $this->assign('data', $data);

//        P($cateData);die;
        $this->display();
    }
}
?>